<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
    <title>广西水电报名系统</title>

    <!-- CSS  -->
    <!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
    <link href="/bm/Public/css/Mi.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<nav class="blue" role="navigation">
    <div class="nav-wrapper container"><a id="logo-container" href="<?php echo U('Index/index');?>" class="brand-logo">广西水电报名系统</a>
        <ul class="right hide-on-med-and-down">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>
            <?php if(session('?username')): ?><li><a href="index.html"><?php echo ($_SESSION["username"]); ?></a></li><li><a href="<?php echo U('UserInfo/index');?>">报名详情</a></li><li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/logout');?>">退出</a></li>
                <?php else: ?> <li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/index');?>">登录</a></li><?php endif; ?>
        </ul>
        <ul id="nav-mobile" class="side-nav">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>

            <?php if(session('?username')): ?><li><a href="#"><?php echo ($_SESSION["username"]); ?></a></li><li><a href="<?php echo U('UserInfo/index');?>">报名详情</a></li><li><a href="<?php echo U('Login/logout');?>">退出</a></li>
                <?php else: ?> <li><a href="<?php echo U('Login/index');?>">登录</a></li><?php endif; ?>
        </ul>
        <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
    </div>
</nav>


<div class="container">
    <div class="section" id="mysec">
        <h4>你参加的报名</h4>
        <?php if(is_array($UserInfo)): $i = 0; $__LIST__ = $UserInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="row">
                <div class="col s12">
                    <div class="card-panel hoverable">
                        <div class="">
                            <div class="left"><h4><?php echo ($vo["enroll"]); ?></h4></div>
                            <div class="right" style="margin-top: 20px;">报名时间：<?php echo ($vo["addtime"]); ?></div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="right">
                            <a class="waves-effect waves-light btn red" href="<?php echo U('UserInfo/remove',array('enroll'=>$vo['enroll']));?>">取消报名</a>
                        </div>
                        <div class="clearfix"></div>


                    </div>
                </div>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>


        <!--<ul class="pagination center">-->
            <!--<?php echo ($page); ?>-->
        <!--</ul>-->
    </div>


</div>

<div class="clearfix"></div>

<footer class="page-footer blue" style="padding-top: 0px;">
    <div class="footer-copyright">
        <div class="container center">
            © 2016 广西水利电力职业技术学院<a class="orange-text text-lighten-3" href="#">敏捷软件协会</a>
        </div>
    </div>
</footer>


<!--  Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="/bm/Public/js/materialize.js"></script>
<script src="/bm/Public/js/init.js"></script>
<script>
    $(document).ready(function () {
        $('select').material_select();
    });
</script>
</body>
</html>

</html>